#!/usr/bin/env bash

set -eo pipefail

# shellcheck disable=1091
source script/extract-versions

if [ "$CLJ_KONDO_TEST_ENV" = "native" ]; then
    clojure -M:test
else
    echo "Testing with Clojure 1.10.3"
    clojure -M:clojure-1.10.3:test
    lein with-profiles +clojure-1.10.3 "do" clean, test
    echo "Regression tests"
fi

echo "Pod test"
clojure -M:test:pod-test -d pod-test
